import request from '@/utils/request'

// 查询业务流程列表
export function listSysProcess(query) {
  return request({
    url: '/system/sysProcess/list',
    method: 'get',
    params: query
  })
}

// 初始化
export function initBean() {
    return request({
        url: '/system/sysProcess/initBean',
        method: 'post'
    })
}

// 查询业务流程详细
export function getSysProcess(pid) {
  return request({
    url: '/system/sysProcess/' + pid,
    method: 'get'
  })
}

// 新增业务流程
export function addSysProcess(data) {
  return request({
    url: '/system/sysProcess',
    method: 'post',
    data: data
  })
}

// 修改业务流程
export function updateSysProcess(data) {
  return request({
    url: '/system/sysProcess',
    method: 'put',
    data: data
  })
}

// 删除业务流程
export function delSysProcess(pid) {
  return request({
    url: '/system/sysProcess/' + pid,
    method: 'delete'
  })
}
